import 'reflect-metadata'
import {BaseController} from "../base/BaseController";


export enum RequetMethod {
    GET = 'get',
    POST = 'post',
    PUT = 'put',
    DELETE = 'delete'
}

export function RequestMapping(path: string, method: RequetMethod) {
    return function (target: BaseController, key: string) {
        Reflect.defineMetadata('path', path, target, key)
        Reflect.defineMetadata('method', method, target, key)
    }
}

